﻿using System;
using System.Windows;
using System.Windows.Controls;
using Microsoft.Xna.Framework.Input;

namespace SoSlam.SilverlightClient.SoSlamGame
{
	public partial class MainPage
	{
		private Common.ClientLogic.SoSlamGame _game;

		public MainPage()
		{
			InitializeComponent();
		}

		private void OnGameSurfaceDraw(object sender, DrawEventArgs e)
		{
		}

		private void OnControlLoaded(object sender, RoutedEventArgs e)
		{
            // Initialize keyboard & mouse
            Keyboard.RootControl = this;
            Mouse.RootControl = this;

			_game = new Common.ClientLogic.SoSlamGame(GameSurface);
			_game.Run();
		}
	}

}
